package com.dtech.submp.service;

import com.dtech.submp.dao.UsersDao;
import com.dtech.submp.model.UsersEntity;
import org.nutz.dao.QueryResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户信息查询
 */
@Service
public class UsersService {

	@Autowired
	private UsersDao dao;

	public void add(UsersEntity t) {
		dao.insert(t);
	}

	public UsersEntity findById(String id) {
		return dao.findById(id);
	}

	public void del(String id) {

	}

	public void modify(UsersEntity t) {
		dao.update(t);
	}

	public QueryResult findUserList(UsersEntity entity, int pageNumber, int pageSize) {
		return dao.findUserList(entity,pageNumber,pageSize );
	}


}
